package com.sakura.flux.service;

import com.sakura.flux.entity.User;
import reactor.core.publisher.Mono;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;



import java.util.UUID;

//@HttpExchange(url = "/users", accept = "application/json", contentType = "application/json")
//public interface PostClient {
//    @GetExchange("")
//    Flux<Post> allPosts();
//
//    @GetExchange("/{id}")
//    Mono<Post> getById(@PathVariable("id") UUID id);
//
//    @PostExchange("")
//    Mono<ResponseEntity<Void>> save(@RequestBody User user);
//
//    @PutExchange("/{id}")
//    Mono<ResponseEntity<Void>> update(@PathVariable UUID id, @RequestBody User user);
//
//    @DeleteExchange("/{id}")
//    Mono<ResponseEntity<Void>> delete(@PathVariable UUID id);
//
//}